package chapter04.childpackage;

import chapter04.Java17_Object_Access;

public class TestPackage {
    public static void main(String[] args) {

        Java17_Object_Access user = new Java17_Object_Access();
        // System.out.println(user.name); 报错：'name' has private access in 'chapter04.Java17_Object_Access'
        System.out.println(user.userName);
        // System.out.println(user.sex); 报错：'chapter04.User17' is not public in 'chapter04'. Cannot be accessed from outside package
        // System.out.println(user.age); 报错：Cannot resolve symbol 'age'

    }
}
